package com.example.bootDemo.service.imp;

import com.example.bootDemo.dto.UserDto;
import com.example.bootDemo.mapper.UserMapper;
import com.example.bootDemo.vo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 创建Service类
 *
 * @author zys20
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * @param dto
     * @Description 根据条件查询用户信息列表
     */
    public List<User> list(UserDto dto) {
        return userMapper.list(dto);
    }

}
